{% extends 'unfold/layouts/skeleton.html' %}

{% load i18n unfold %}

{% block base %}
    <div id="page" class="flex min-h-screen">
        {% if not is_popup and is_nav_sidebar_enabled %}
            {% block nav-sidebar %}
                {% include "admin/nav_sidebar.html" %}
            {% endblock %}
        {% endif %}

        <div id="main" class="bg-white flex flex-col grow min-w-0 dark:bg-base-900 {% element_classes 'main' %}">
            {% block content_before %}
                {% include "unfold/helpers/header.html" %}
            {% endblock %}

            <div class="px-4">
                <div id="content" class="container mx-auto {% block coltype %}colM{% endblock %}">
                    {% block content %}
                        {% block object-tools %}{% endblock %}

                        {{ content }}
                    {% endblock %}

                    {% block sidebar %}{% endblock %}
                </div>
            </div>

            {% block footer %}{% endblock %}
        </div>
    </div>
{% endblock %}
